// 导入公共样式
@import "common";

body {
    min-width: 320px;
    width: 15rem;
    margin: 0 auto;
    line-height: 1.5;
    font-family: Arial, Helvetica, STHeiTi, sans-serif;
    background: #f2f2f2;
}

// 定义html:50px
@basefont: 50;

.search_content {
    position: relative;
    display: flex;
    width: 15rem;
    height: (88rem/@basefont);
    background-color: #8bd5fc;

    .search {
        width: (682rem/@basefont);
        height: (88rem/@basefont);
        line-height: (110rem/@basefont);
        margin: 0 auto;

        .classify {
            float: left;
            width: (36rem/@basefont);
            height: (60rem/@basefont);

            img {
                width: (36rem/@basefont);
                background-size: (36rem/@basefont);
            }
        }

        >img {
            position: absolute;
            top: 0;
            left: 50%;
            transform: translateX(-50%);
            width: (390rem/@basefont);
            background-size: (390rem/@basefont);
        }

        .login {
            float: right;
            width: (36rem/@basefont);
            height: (60rem/@basefont);

            img {
                width: (36rem/@basefont);
                background-size: (36rem/@basefont);

            }
        }

    }

}

// 搜索
.input_search {
    display: block;
    width: 15rem;
    height: (88rem/@basefont);
    background-color: #8bd5fc;
    position: relative;

    &::before {
        display: block;
        content: "";
        position: absolute;
        top: (9rem/@basefont);
        left: (55rem/@basefont);
        width: (36rem/@basefont);
        height: (36rem/@basefont);
        background-color: pink;
        background: url(../images/fangdajing.png) no-repeat;
        background-size: (36rem/@basefont);
        z-index: 1;
    }

    a {

        input {
            outline: none;
            position: absolute;
            top: 0;
            left: 50%;
            width: (100% - 10%);
            line-height: (50rem/@basefont);
            padding-left: (75rem/@basefont);
            transform: translateX(-50%);
            border: 0;
            border-radius: (44rem/@basefont);
            font-size: (25rem/@basefont);
            color: #646464;
        }
    }
}

// 焦点图
.banner {
    width: (750rem/@basefont);
    height: (368rem/@basefont);
    border-radius: (20rem/@basefont);
    overflow: hidden;

    img {
        width: 100%;
        height: 100%;
    }
}

// nav 
nav {
    width: (750rem/@basefont);

    a {
        float: left;
        width: (150rem/@basefont);
        height: (142rem/@basefont);
        text-align: center;

        img {
            display: block;
            width: (84rem/@basefont);
            margin: (10rem/@basefont) auto 0;
        }

        span {
            display: block;
            font-size: (25rem/@basefont);
            color: #333;
        }
    }
}

// 广告样式
.gg {
    width: (750rem/@basefont);

    a:nth-child(1) {
        float: left;
        width: 50%;

        img {
            width: (374rem/@basefont);
            height: (234rem/@basefont);
        }
    }

    a:nth-child(2),
    a:nth-child(3) {
        float: left;
        width: 25%;

        img {
            width: (186rem/@basefont);
            height: (234rem/@basefont);
        }
    }

}

// 猜你喜欢
.xihuan {
    width: (750rem/@basefont);

    img {
        width: 100%;
    }
}

// 产品样式
.chanpin {
    width: (750rem/@basefont);

    ul {
        list-style: none;
        box-sizing: border-box;

        li {
            float: left;
            width: 50%;
            vertical-align: top;
            background-color: #fff;
            text-align: center;
            img {
                width: (342rem/@basefont);
                height: (342rem/@basefont);
            }

            p {
                font-size: (25rem/@basefont);
                font-weight: 700;
                margin: (18rem/@basefont) (12rem/@basefont) 0;
                width: (317rem/@basefont);
                height: (67rem/@basefont);
                overflow: hidden;
                text-overflow: ellipsis;
                display: -webkit-box;
                -webkit-line-clamp: 2;
                -webkit-box-orient: vertical;
                white-space: normal;

            }

            .ziying {
                position: relative;
                display: block;
                width: (267rem/@basefont);
                height: (24rem/@basefont);
                margin: 11px 12px 24px;

                img {
                    float: left;
                    width: (48rem/@basefont);
                    height: (24rem/@basefont);
                    background-size: (48rem/@basefont) (24rem/@basefont);
                    vertical-align: middle;
                }

                span {
                    position: absolute;
                    top: 0;
                    left: 20%;
                    font-size: (12rem/@basefont);
                    border: 1px solid #ffcc00;
                    border-radius: (10rem/@basefont);
                    padding: 0 12px;
                }
            }

            .jiage {
                width: (330rem/@basefont);
                height: (38rem/@basefont);
                font-size: (14rem/@basefont);
                color: #ccc;
                text-align: left;
                padding-left: (10rem/@basefont);

                span {

                    font-size: (25rem/@basefont);
                    color: red;
                    font-weight: 700;
                }
            }
        }
    }
}